-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional progress bar on task page, updated with task-progress events #1071
base: master
Are you sure you want to change the base?
Conversation
Hi there, This feature would be realy cool ! I installed this branch of flower : Here is my task code @app.task(name='train', bind=True)
@wraps(raw_train) # used to inject doc & param information
def train(self, *args, **kwargs):
# define a callback to update a progress state in celery
def callback(progress):
print('PROGRESS: %d%%' % int(100*progress))
# send task-progress event for flower
self.send_event('task-progress', current=int(100*progress), total=100)
# execute the true train method
return raw_train(*args, **kwargs, callback=callback)
# ############################### starting flower (i dont know if broker_api is usefull in any way) starting the worker |
why isn't it merged already? |
I would like to see a progress bar in flower as well, but unfortunately, the PR has never been merged. So I tried to build the fork EugZol/flower, which seems to be outdated as well |
It's working but the UI and the version is old: DockerFile :
TASK :
Docker-compose:
|
It's cool!But is there any progress with this feature? |
Progress bar which appears automatically on task page when
task-progress
event is received.It was discussed in #453 and #143 previously, but as far as I understand wasn't implemented. That PR provides unobtrusive built-in solution.
Example task code: